<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  
  <body>
    <script type="text/javascript">
		var teacherDatagrid;
		var selecting = undefined;
		$(function() {
			teacherDatagrid = $('#teacherDatagrid')
					.datagrid(
							{
								url:'<%=request.getContextPath()%>/getInfo',
								pagination : true,
								singleSelect : true,
								sortName : 'id',
								sortOrder : 'asc',
								fit : true,
								fitColumns : true,
								columns : [ [
										{
											field : 'StudentName',
											title : '学生姓名',
											width : 50,
											sortable : true,
										},
										{
											field : 'dissName',
											title : '论文名',
											width : 300
										},
										{
											field : 'dissStateOfExamination',
											title : '论文状态',
											width : 100,
											formatter : function(value, row,
													index) {
												if (value == ""
														|| value == null
														|| value == "A")
													return '未审核';
												else if (value == "B")
													return '指导教师审核未通过';
												else if (value == "C")
													return '指导教师审核通过';
												else if (value == "D")
													return '专业负责人审核未通过';
												else if (value == "E")
													return '专业负责人审核通过';
											}
										},
										{
											field : 'btn',
											title : '操作',
											width : 100,
											formatter : function(value, row,
													index) {
												return '<a id="'
														+ index
														+ '" onclick="down('
														+ index
														+ ')">下载</a>'
														+ '&nbsp;&nbsp;<button  onclick="wordShow(\''
														+ row["dissOpenReportURL"]
														+ '\')">在线查看</button>';
											}
										} ] ],
								onLoadSuccess : function(data) {
									$('.linkbutton').linkbutton({
										text : '编辑',
										plain : true,
										iconCls : 'icon-edit'
									});
								},
								onSelect : function(rowIndex, rowData) {
									selecting = rowData["id"];
								},
								onUnselect : function(rowIndex, rowData) {
									selecting = undefined;
								},
								onClickRow : function(rowIndex, rowData) {
									/*$.post("
	<%=request.getContextPath()%>
		/selectStu",{
									'id':rowData["id"]},function(r){
									},'json');*/
								}
							});

		});
	</script>
	 <div class="panel panel-default">
                <div class="panel-heading" align="left"> <a data-toggle="collapse" data-parent="#accordion"  href="#collapseHelp" class="glyphicon glyphicon-chevron-down"> 操作指南 </a> </div>
                <div id="collapseHelp" class="panel-collapse collapse">
                  <div class="panel-body">操作指南 —— 毕业论文开题报告
            <ul>
              <li>论文开题报告提交后，需等待指导教授审核，只有审核通过后，才算完成开题</li><br>
              <li>如果论文中包含大量的数学公式，请以附件的方式上传开题报告</li>
            </ul> </div>
                </div>
        </div>
	<table id="teacherDatagrid"></table>
  </body>
</html>
